import { _decorator, CCInteger, Component } from 'cc';
import { UIManager } from '../../manger/UIManager';
//import { UIManager } from '../../../manger/UIManager';

const { ccclass, property } = _decorator;

@ccclass('DefaultOpenViewButton')
export class DefaultOpenViewButton extends Component {
    @property(CCInteger)
    viewId: number = 0

    onTouch() {
        UIManager.instance().openView(this.viewId)
    }

}


